import request from '@/utils/request'

// 查询Bet列表
export function listBet(query) {
  return request({
    url: '/api/v1/bet',
    method: 'get',
    params: query
  })
}

// 查询Bet详细
export function getBet(id) {
  return request({
    url: '/api/v1/bet/' + id,
    method: 'get'
  })
}

// 新增Bet
export function addBet(data) {
  return request({
    url: '/api/v1/bet',
    method: 'post',
    data: data
  })
}

// 修改Bet
export function updateBet(data) {
  return request({
    url: '/api/v1/bet/' + data.id,
    method: 'put',
    data: data
  })
}

// 删除Bet
export function delBet(data) {
  return request({
    url: '/api/v1/bet',
    method: 'delete',
    data: data
  })
}

